home *** CD-ROM | disk | FTP | other *** search
- Path: maine.maine.edu!io20816
- Organization: University of Maine System
- Date: Mon, 25 Mar 1996 22:46:14 EST
- From: Kevin Foss <IO20816@MAINE.MAINE.EDU>
- Message-ID: <96085.224614IO20816@MAINE.MAINE.EDU>
- Newsgroups: comp.sys.cbm,comp.sys.atari.8bit
- Subject: Re: GNU C-compiler port to 6502
- References: <4irqpb$7pc@esel.cosy.sbg.ac.at> <DoMHs1.M3M@iglou.com>
- <4isha9$s6g@charm.magnus.acs.ohio-state.edu> <4j1vjr$poi@nuke.csu.net>
- <4j6b5v$f3b@news.lth.se>
-
- In article <4j6b5v$f3b@news.lth.se>, dat94ali@ludat.lth.se (Anders Lindgren)
- says:
- >In article <4j1vjr$poi@nuke.csu.net>, kendrick@zippy.sonoma.edu
- >(William Kendrick) writes:
- >>Rob Funk (rfunk@magnus.acs.ohio-state.edu) wrote:
- >>: In article <DoMHs1.M3M@iglou.com>, Bill Marcum <bmarcum@iglou.iglou.com>
- >>: wrote:
- >>: >It might be possible to write a cross-compiler that produces 6502
- >>: >code on some other system.
- >>:
- >>: That's been done: cc65
- >>
- > [snip William's post]
- >
- >Heeeeeeeyy, waaaaait a minute! You mean there *is* a c crosscompiler?
- >*where?!* I want it! 8-) Seriously, I don't mind if it's not the
- >best optimizing thing ever to be, just a decent crosscompiler that
- >produces working, decent code. Where can I find cc65? I'd probably
- >need the source (I take it there's no binary for Amiga...)
- >
- >ehh, It's not commercial is it?
-
- The source for cc65 is on the major Atari archive site:
- ftp://atari.archive.umich.edu/atari/8bit/Cc65
-
- For doing any porting you'll probably want to get the UNIX modifications, and
- go from there, rather than the original Atari source.
-
- The code is fairly portable, but may need some tweaking on other platforms.
- I've been able to compile it under OS/2 fairly painlessly. When some people
- expressed interest in a DOS version, I put the binaries up on my web page.
- The files in one package work under either operating system (with appropriate
- runtimes.) Just a FYI, if anyone is interested in a version for either of
- those platforms:
- http://www.agate.net/~rfoss/cc65.html
-
- In general the compiler isn't too bad, sometimes the optimizer seems a little
- wacky. Unoptimized code will work fine, but the optimized code will just
- lock up. Also the C library probably could be more robust. However a
- set of libraries with extra functions for controlling graphics and
- input devices helps. I doubt it is suited to a major project, but is nice
- for whipping out small quick applications. Also from what I can tell, there
- are some outright bugs in the UNIX source for the extra utilities like
- 'printobj' that come with cc65. But that shouldn't be a concern for doing
- a port of the basic package.
-
- P.S.: Cc65 was written to produce Atari 8-bit executables. You'd need at
- least new runtime libraries to get it to work on other 6502 machines, and
- other code might be necessary. Just thought I would mention that, because
- this thread seems to be cross-posted all over the place.
-
- -Kevin
- ------------------------------------------------------------
- Kevin A. Foss -------------------- io20816@maine.maine.edu
- ------------------------------------------------------------
-